import React, { Component } from 'react';

class Zhishu extends Component {
    constructor(props) {
        super(props);
        this.state= {
            contxt:props.txt
        }
    }
    
    render() {
        return (
          
            <div className='zhishu-wrap'>
                <ul className="zhishu">
                    <li className="up">
                        <div>
                            <p>{this.state.contxt}</p>
                         
                            <p>
                                <span>-6.48</span>
                                <span>-0.20%</span>
                            </p>
                        </div>
                    </li>
                    <li>
                        <div>
                            <p>深证成指</p>
                            <p>3219.91</p>
                            <p>
                                <span>-6.48</span>
                                <span>-0.20%</span>
                            </p>
                        </div>
                    </li>
                    <li className="down">
                        <div>
                            <p>创业板指</p>
                            <p>3219.91</p>
                            <p>
                                <span>-6.48</span>
                                <span>-0.20%</span>
                            </p>
                        </div>
                    </li>
                </ul>
                <p className="update-time">已收盘，数据更新与：07-14 15:00:00</p>
            </div>
            
        );
    }
}

export default Zhishu;